home *** CD-ROM | disk | FTP | other *** search
-
- elections(Country) :-
- economy(Country, Condition),
- Condition = booming,
- incumbent(Person, Country),
- write(' 0.6 chance of win for '),
- nl,
- write(Person),
- nl,
- !.
- elections(Country) :-
- challenger(Person, Country),
- write('challenger '),
- write(Person),
- nl,
- write('likely to win'),
- nl,
- !.
- economy(usa,booming).
- incumbent(reagan,usa).
- challenger(mondale,usa).
- √ á